package com.king.prototype.demo02;

import java.util.Date;

/**
 *
 * 深克隆方式
 */
public class Client {
    public static void main(String[] args) throws CloneNotSupportedException {

        Date date = new Date();
        Video v1 = new Video("king",date);
        Video v2 = (Video) v1.clone();
        System.out.println("v1=="+v1);
        System.out.println("v2=="+v2);

        System.out.println("华丽得分割线==============");
        date.setTime(4023949);

        System.out.println("v1=="+v1);
        System.out.println("v2=="+v2);

    }
}
